/**
 * @projectName: api-backend
 * @package: com.wangzz.apiclientsdk.client
 * @className: WeatherClient
 * @author: wangzz
 * @description: TODO
 * @date: 2024/3/19 20:27
 * @version: 1.0
 */

package com.wangzz.apiclientsdk.client;

import cn.hutool.http.HttpRequest;

/**
 * @Author: wangzz
 * @Description: 天气客户端
 * @DateTime: 2024/3/19 20:27
 **/
public class WeatherClient extends ApiClient {


    public WeatherClient(String accessKey, String secretKey) {
        super(accessKey, secretKey);
    }

    public String getWeatherByPost() {
        return HttpRequest.post(REQUEST_URL + "/api/weather")
                .addHeaders(getHeaderMap("", accessKey, secretKey))
                .execute().body();
    }
}